﻿
namespace ZR.Model.Dto.Business.ProductionControl {
    /// <summary>
    /// 采集曲线数据查询对象
    /// </summary>
    public class CksCollectedCurveDataQueryDto : PagerInfo {

        public string PrimaryCode { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? BeginTime { get; set; }

        /// <summary>
        /// 结束时间 
        /// </summary>
        public DateTime? EndTime { get; set; }

    }

    /// <summary>
    /// 采集曲线数据输入输出对象
    /// </summary>
    public class CksCollectedCurveDataDto {
        [Required(ErrorMessage = "Id不能为空")]
        public int Id { get; set; }

        [Required(ErrorMessage = "PLCID不能为空")]
        public int PlcId { get; set; }

        [Required(ErrorMessage = "数据块不能为空")]
        public int DbBlock { get; set; }

        [Required(ErrorMessage = "主产品码不能为空")]
        public string PrimaryCode { get; set; }


        [Required(ErrorMessage = "曲线数据JSON不能为空")]
        public string CurveData { get; set; }

        public DateTime? CreateTime { get; set; }

        [Required(ErrorMessage = "逻辑删除不能为空")]
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 采集批次
        /// </summary>
        public string CollectBatchCode { get; set; }

        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }

        /// <summary>
        /// 站点编号
        /// </summary>
        public string StationCode { get; set; }

    }
}